home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / NCSA / tn3270 2.4d7 source / tn3270 / deutsch.kbmap < prev    next >
Text File  |  1992-04-17  |  14KB  |  547 lines

  1. #
  2. #  tn3270 for the Macintosh Source Code
  3. #  Brown University Computing and Information Services
  4. #  Version 2.4d7  April, 1992
  5. #  Copyright (c) 1988, 1989, 1990, 1991, 1992 by Brown University and by
  6. #  Peter John DiCamillo.
  7. #
  8. #  Permission is granted to any individual or institution to use, copy,
  9. #  or redistribute the binary version of this software and its
  10. #  documentation provided this notice and the copyright notices are
  11. #  retained.  Permission is granted to any individual or non-profit
  12. #  institution to use, copy, modify, or redistribute the source files
  13. #  of this software provided this notice and the copyright notices are
  14. #  retained.  This software may not be distributed for profit, either
  15. #  in original form or in derivative works, nor can the source be
  16. #  distributed to other than an individual or a non-profit institution.
  17. #  Any  individual or group interested in seeing and/or using these
  18. #  source files but who are prevented from doing so by the above
  19. #  constraints should contact Don Wolfe, Assistant Vice-President for
  20. #  Computer Systems at Brown University, (401) 863-7250, for possible
  21. #  software licensing of the source developed at Brown.
  22. #
  23. #  Brown University and Peter John DiCamillo make no representations
  24. #  about the suitability of this software for any purpose.
  25. #
  26. #  BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
  27. #  EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
  28. #  INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
  29. #  WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
  30. #
  31.  
  32. #
  33. # tn3270 keycode mapping definition
  34. #
  35. # General syntax rules:
  36. #    Case is ignored except in the name of the key mapping, and in character
  37. #    literals, e.g. 'a'.
  38. #
  39. #    Blank lines, white space, and any text following "#" on a line is ignored.
  40. #
  41. # The three types of definition lines are the mapping name definition, the
  42. # mapping number definition, and the key mapping definition:
  43. #
  44. #    To name this mapping:
  45. #        name: {mapping name}
  46. #    Underscores in the name are replaced by blanks.  Use two consecutive
  47. #    underscores to include an underscore in the name.
  48. #
  49. #    To assign a resource number for this mapping:
  50. #        number: {resource number}
  51. #    This number is only used when the resource is written out in "Rez"
  52. #    file format.
  53. #
  54. #    To map a function to a key sequence:
  55. #         function = [modifier] {'literal' | "hexcode" | "Khexcode"}
  56. #
  57. #    Function names are listed below.  Following each name enclosed in
  58. #    parenthesis is the EBCDIC hex code the name maps to.
  59. #      Punctuation Marks:
  60. #        space (40)        cent (4A)        period (4B)            less (4C)
  61. #        lparen (4D)        plus (4E)        or (4F)                ampersand (50)
  62. #        exclaim (5A)    dollar (5B)        asterisk (5C)        rparen (5D)
  63. #        semi (5E)        not (5F)        minus (60)            slash (61)
  64. #        vertical (6A)    comma (6B)        percent (6C)        underscore (6D)
  65. #        greater (6E)    question (6F)    accent (79)            colon (7A)
  66. #        pound (7B)        at (7C)            apostrophe (7D)        equal (7E)
  67. #        dblquote (7F)    tilde (A1)        lbrack (AD)            rbrack (BD)
  68. #        lbrace (C0)        rbrace (D0)
  69. #      Lowercase Letters:
  70. #        lca through lci (81 through 89)
  71. #        lcj through lcr (91 through 99)
  72. #        lcs through lcz (A2 through A9)
  73. #      Uppercase Letters:
  74. #        a through i    (C1 through C9)
  75. #        j through r (D1 through D9)
  76. #        s through z (E2 through E9)
  77. #      Digits:
  78. #        0 through 9 (F0 through F9)
  79. #      APL Characters: (hex codes given are preceded by Graphics Escape)
  80. #        Note: APL mode must be in effect for these characters to be generated.
  81. #        a_ through i_ (41 through 49) (underscored uppercase letters)
  82. #        j_ through r_ (51 through 59)
  83. #        s_ through z_ (62 through 69)
  84. #        i-beam (DA)            del-tilde (FB)        grade-down (DC)
  85. #        grade-up (DD)        vert-rotate (CD)    transpose (CF)
  86. #        hor-rotate (ED)        logarithm (FD)        nor (CB)
  87. #        nand (CA)            apl-exclaim (DB)    domino (EE)
  88. #        quote-quad (DE)        delta_ (FC)            format (FE)
  89. #        execute (EF)        lamp (DF)            expand (EB)
  90. #        compress (EA)
  91. #      ALA Characters (for use the built-in ALA font)
  92. #        subfield_delimiter (1F)            acute (9B)
  93. #        end_of_line (2A)                ala_circumflex (9C)
  94. #        start_of_message (38)            hacek (9D)
  95. #        paragraph (39)                    ligature_second_half (9E)
  96. #        dagger (3A)                        double_tilde_second_half (9F)
  97. #        double_dagger (3B)                ala_dagger (A0)
  98. #        polish_l_upper (41)                sub_plus (AA)
  99. #        scandinavian_o_upper (42)        sub_lparen (AB)
  100. #        d_with_crossbar_upper (43)        pincushion (AC)
  101. #        icelandic_thorn_upper (44)        sub_minus (AE)
  102. #        digraph_ae_upper (45)            sub_rparen (AF)
  103. #        digraph_oe_upper (46)            sup0 (B0)
  104. #        o-hook_upper (47)                sup1 (B1)
  105. #        u-hook_upper (48)                sup2 (B2)
  106. #        soft_sign (49)                    sup3 (B3)
  107. #        polish_l_lower (51)                sup4 (B4)
  108. #        scandinavian_o_lower (52)        sup5 (B5)
  109. #        d_with_crossbar_lower (53)        sup6 (B6)
  110. #        icelandic_thorn_lower (54)        sup7 (B7)
  111. #        digraph_ae_lower (55)            sup8 (B8)
  112. #        digraph_oe_lower (56)            sup9 (B9)
  113. #        o-hook_lower (57)                sup_plus (BA)
  114. #        u-hook_lower (58)                sup_lparen (BB)
  115. #        hard_sign (59)                    asper (BC)
  116. #        ayn (62)                        sup_minus (BE)
  117. #        alif (63)                        sup_rparen (BF)
  118. #        dot_in_middle_of_line (64)        circle_below (CA)
  119. #        turkish_i_lower (65)            dot_below (CB)
  120. #        musical_flat (66)                double_dot_below (CC)
  121. #        subscript_patent_mark (67)        breve (CD)
  122. #        eth (68)                        ala_tilde (CE)
  123. #        plus_or_minus (69)                pseudo_question (CF)
  124. #        sub0 (70)                        cedilla (DA)
  125. #        sub1 (71)                        high_comma_centered (DB)
  126. #        sub2 (72)                        right_hook (DC)
  127. #        sub3 (73)                        upadhmaniya (DD)
  128. #        sub4 (74)                        macron (DE)
  129. #        sub5 (75)                        double_acute (DF)
  130. #        sub6 (76)                        british_pound (E1)
  131. #        sub7 (77)                        right_cedilla (EA)
  132. #        sub8 (78)                        high_comma_off_center (EB)
  133. #        script_l (80)                    left_hook/tail (EC)
  134. #        circle_above (8A)                ala_underscore (ED)
  135. #        superior_dot (8B)                double_underscore (EE)
  136. #        umlaut (8C)                        ala_alpha (FA)
  137. #        candrabindu (8D)                ala_beta (FB)
  138. #        ligature_first_half (8E)        ala_gamma (FC)
  139. #        double_tilde_first_half (8F)    yen (FD)
  140. #        sub9 (90)                        peso (FE)
  141. #        grave (9A)
  142. #      Attention Keys: (hex codes are the AID codes transmitted)
  143. #        pf1 through pf9 (F1 through F9)
  144. #        pf10 through pf12 (7A through 7C)
  145. #        pf13 through pf21 (C1 through C9)
  146. #        pf22 through pf24 (4A through 4C)
  147. #        enter (7D)        pa1 (6C)        pa2 (6E)        pa3 (6B)
  148. #        clear (6D)        treq (F0)        cursel (7E)
  149. #      Cursor Movement:
  150. #        up                down            left        right        tab
  151. #        backtab            newline            home        up*2        down*2
  152. #        left*2            right*2
  153. #      Editing:
  154. #        erase-eof        erase-input        delete-char        insert-char
  155. #        dup                field-mark        rub-out
  156. #      Program Control:
  157. #        insert-mode (toggle insert mode)
  158. #        apl-mode (toggle keyboard APL mode)
  159. #        cursor-pos (toggle cursor position display)
  160. #        reset (unlock keyboard)
  161. #        prog-reset (reset program; resets above modes and I/O)
  162. #        print-screen  (equivalent to "Print Screen..." from the "File" menu)
  163. #
  164. #    Modifier is: normal, shift, command, command-shift, or option.  
  165. #   If the user presses more than one modifier key, the precedence of the
  166. #    modifiers is: command-shift, command, option, and shift.  It is not
  167. #    possible to specify mapping for other combinations, such as command-option.
  168. #    For ASCII key mappings, when "modifier" is omitted, the mapping applies
  169. #    to both "normal" and "shift".  For keycode mappings, the default modifier
  170. #    is "normal", i.e. no modifiers.
  171. #
  172. #    'literal' specifies a mapping to the ASCII code defined by the character
  173. #    literal.
  174. #
  175. #    "hexcode" specifies a mapping to the ASCII code given in hex.  It must
  176. #    consist of exactly two hex digits.
  177. #
  178. #    "Khexcode" specifies a keycode mapping to the code given in hex.  It must
  179. #    consist of exactly two hex digits.
  180. #    If a keycode mapping is defined for a key, it takes precedence over an
  181. #    ASCII code mapping for it.
  182. #    Keycode mapping use the raw key codes provided by the Macintosh operating
  183. #    system for a key press event.  They are hardware dependent, and should only
  184. #    be used when keys which must be distinguished return the same ASCII codes.
  185. #    For keycode values see "The Toolbox Event Manager" chapter in volumes 1 and
  186. #    5 of "Inside Macintosh".
  187. #
  188. # tn3270 Austrian/German mapping
  189. #
  190. # The following table shows how the code point assignments are changed for
  191. # Austrian/German vs. U.S. English:
  192. #
  193. #
  194. #             EBCDIC 4A  4F  5A  5B  5F  6A  79  7B  7C  7F  A1  C0  D0  E0
  195. # U.S. English        ¢   |   !   $   ¬  **   `   #   @   "   ~   {   }   \
  196. # Austrian/German     Ä   !   Ü   $   ^   ö   `   #   §   "   ß   ä   ü   Ö  
  197. #
  198. # ** - X'6A' in English is a broken vertical line
  199. #
  200. # The U.S. English characters are used to define the names for the code points.
  201. #
  202. name: Deutsch
  203. number: 130
  204.  
  205. # charcter mappings
  206.  
  207. space = "20"        # spaces are ignored in literals too
  208. cent = 'Ä'
  209. period = '.'
  210. less = '<'
  211. lparen = '('
  212. plus = '+'
  213. or = '!'
  214. ampersand = '&'
  215. exclaim = 'Ü'
  216. dollar = '$'
  217. asterisk = '*'
  218. rparen = ')'
  219. semi = ';'
  220. not = '^'
  221. minus = '-'
  222. slash = '/'
  223. vertical = 'ö'
  224. comma = ','
  225. percent = '%'
  226. underscore = '_'
  227. greater = '>'
  228. question = '?'
  229. accent = '`'
  230. colon = ':'
  231. pound = "23"    # can't use comment delimiter in a literal!
  232. at = '§'
  233. apostrophe = '´'
  234. equal = '='
  235. dblquote = '"'
  236. lca = 'a'
  237. lcb = 'b'
  238. lcc = 'c'
  239. lcd = 'd'
  240. lce = 'e'
  241. lcf = 'f'
  242. lcg = 'g'
  243. lch = 'h'
  244. lci = 'i'
  245. lcj = 'j'
  246. lck = 'k'
  247. lcl = 'l'
  248. lcm = 'm'
  249. lcn = 'n'
  250. lco = 'o'
  251. lcp = 'p'
  252. lcq = 'q'
  253. lcr = 'r'
  254. lcs = 's'
  255. lct = 't'
  256. lcu = 'u'
  257. lcv = 'v'
  258. lcw = 'w'
  259. lcx = 'x'
  260. lcy = 'y'
  261. lcz = 'z'
  262. tilde = 'ß'
  263. lbrack = option '['
  264. rbrack = option ']'
  265. lbrace = 'ä'
  266. rbrace = 'ü'
  267. a = 'A'
  268. b = 'B'
  269. c = 'C'
  270. d = 'D'
  271. e = 'E'
  272. f = 'F'
  273. g = 'G'
  274. h = 'H'
  275. i = 'I'
  276. j = 'J'
  277. k = 'K'
  278. l = 'L'
  279. m = 'M'
  280. n = 'N'
  281. o = 'O'
  282. p = 'P'
  283. q = 'Q'
  284. r = 'R'
  285. s = 'S'
  286. t = 'T'
  287. u = 'U'
  288. v = 'V'
  289. w = 'W'
  290. x = 'X'
  291. y = 'Y'
  292. z = 'Z'
  293. backslash = 'Ö'
  294. 0 = '0'
  295. 1 = '1'
  296. 2 = '2'
  297. 3 = '3'
  298. 4 = '4'
  299. 5 = '5'
  300. 6 = '6'
  301. 7 = '7'
  302. 8 = '8'
  303. 9 = '9'
  304. a_ = option "K00"
  305. b_ = option "K0b"
  306. c_ = option "K08"
  307. d_ = option "K02"
  308. e_ = option "K0e"
  309. f_ = option "K03"
  310. g_ = option "K05"
  311. h_ = option "K04"
  312. i_ = option "K22"
  313. j_ = option "K26"
  314. k_ = option "K28"
  315. l_ = option "K25"
  316. m_ = option "K2e"
  317. n_ = option "K2d"
  318. o_ = option "K1f"
  319. p_ = option "K23"
  320. q_ = option "K0c"
  321. r_ = option "K0f"
  322. s_ = option "K01"
  323. t_ = option "K11"
  324. u_ = option "K20"
  325. v_ = option "K09"
  326. w_ = option "K0d"
  327. x_ = option "K07"
  328. y_ = option "K10"
  329. z_ = option "K06"
  330. i-beam = option "K12"
  331. del-tilde = option "K13"
  332. grade-down = option "K14"
  333. grade-up = option "K15"
  334. # The next two lines conflict with [ and ]:
  335. # vert-rotate = option "K17"
  336. # transpose = option "K16"
  337. hor-rotate = option "K1a"
  338. logarithm = option "K1c"
  339. nor = option "K19"
  340. nand = option "K1d"
  341. apl-exclaim = option "K1b"
  342. domino = option "K18"
  343. quote-quad = option "K1e"
  344. delta_ = option "K2a"
  345. format = option "K29"
  346. execute = option "K27"
  347. lamp = option "K2b"
  348. expand = option "K2f"
  349. compress = option "K2c"
  350.  
  351. # function mappings
  352.  
  353. enter = normal "0d"
  354.  
  355. pf1 = command '1'
  356. pf1 = "K53"        # keypad 1
  357. pf1 = "K7a"        # F1
  358. pf1 = "K72"        # help
  359.  
  360. pf2 = command '2'
  361. pf2 = "K54"        # keypad 2
  362. pf2 = "K78"        # F2
  363.  
  364. pf3 = command '3'
  365. pf3 = "K55"        # keypad 3
  366. pf3 = "K63"        # F3
  367. pf3 = "K77"        # end
  368.  
  369. pf4 = command '4'
  370. pf4 = "K56"        # keypad 4
  371. pf4 = "K76"        # F4
  372.  
  373. pf5 = command '5'
  374. pf5 = "K57"        # keypad 5
  375. pf5 = "K60"        # F5
  376.  
  377. pf6 = command '6'
  378. pf6 = "K58"        # keypad 6
  379. pf6 = "K61"        # F6
  380.  
  381. pf7 = command '7'
  382. pf7 = "K59"        # keypad 7
  383. pf7 = "K62"        # F7
  384. pf7 = "K74"        # page up
  385.  
  386. pf8 = command '8'
  387. pf8 = "K5b"        # keypad 8
  388. pf8 = "K64"        # F8
  389. pf8 = "K79"        # page down
  390.  
  391. pf9 = command '9'
  392. pf9 = "K5c"        # keypad 9
  393. pf9 = "K65"        # F9
  394.  
  395. pf10 = command '0'
  396. pf10 = "K52"    # keypad 0
  397. pf10 = "K6d"    # F10
  398.  
  399. pf11 = command 'ß'
  400. pf11 = "K41"    # keypad .
  401. pf11 = "K67"    # F11
  402.  
  403. pf12 = command '´'
  404. pf12 = "K4c"    # keypad enter
  405. pf12 = "K6f"    # F12
  406.  
  407. pf13 = command-shift '1'
  408. pf13 = shift "K53"    # keypad 1
  409. pf13 = "K69"        # F13
  410. pf13 = shift "K7a"    # F1
  411.  
  412. pf14 = command-shift '2'
  413. pf14 = shift "K54"    # keypad 2
  414. pf14 = "K6b"        # F14
  415. pf14 = shift "K78"    # F2
  416.  
  417. pf15 = command-shift '3'
  418. pf15 = shift "K55"    # keypad 3
  419. pf15 = "K71"        # F15
  420. pf15 = shift "K63"    # F3
  421.  
  422. pf16 = command-shift '4'
  423. pf16 = shift "K56"    # keypad 4
  424. pf16 = shift "K76"    # F4
  425.  
  426. pf17 = command-shift '5'
  427. pf17 = shift "K57"    # keypad 5
  428. pf17 = shift "K60"    # F5
  429.  
  430. pf18 = command-shift '6'
  431. pf18 = shift "K58"    # keypad 6
  432. pf18 = shift "K61"    # F6
  433.  
  434. pf19 = command-shift '7'
  435. pf19 = shift "K59"    # keypad 7
  436. pf19 = shift "K62"    # F7
  437.  
  438. pf20 = command-shift '8'
  439. pf20 = shift "K5b"    # keypad 8
  440. pf20 = shift "K64"    # F8
  441.  
  442. pf21 = command-shift '9'
  443. pf21 = shift "K5c"    # keypad 9
  444. pf21 = shift "K65"    # F9
  445.  
  446. pf22 = command-shift '0'
  447. pf22 = shift "K52"    # keypad 0
  448. pf22 = shift "K6d"    # F10
  449.  
  450. pf23 = command-shift 'ß'
  451. pf23 = shift "K41"    # keypad .
  452. pf23 = shift "K67"    # F11
  453.  
  454. pf24 = command-shift '´'
  455. pf24 = shift "K4c"    # keypad enter
  456. pf24 = shift "K6f"    # F12
  457.  
  458. pa1 = command ','
  459. pa1 = "K51"            # keypad = (ADB keypad)
  460. pa1 = shift "K48"    # keypad , (numeric/Plus keypad)
  461.  
  462. pa2 = command '.'
  463. pa2 = "K4b"            # keypad / (ADB keypad)
  464. pa2 = shift "K4d"    # keypad / (numeric/Plus keypad)
  465.  
  466. pa3 = command '-'
  467. pa3 = command "03"    # enter
  468.  
  469. clear = command 'c'
  470. clear = "1b"        # keypad clear
  471.  
  472. treq = command '/'
  473. treq = "K43"        # keypad * (ADB keypad)
  474. treq = shift "K42"    # keypad * (numeric/Plus keypad)
  475.  
  476. cursel = command 'l'
  477.  
  478. up = command 'u'
  479. up = "1e"            # up arrow code
  480.  
  481. down = command 'm'
  482. down = command 'n'
  483. down = "1f"            # down arrow code
  484.  
  485. left = command 'h'
  486. left = "1c"            # left arrow code
  487. left = normal "08"    # backspace/delete code
  488.  
  489.  
  490. right = command 'j'
  491. right = command 'k'
  492. right = "1d"        # right arrow code
  493.  
  494. tab = normal "09"    # tab key
  495. backtab = shift "09"
  496.  
  497. newline = "03"            # enter key
  498. newline = shift "0d"    # return key
  499.  
  500. home = command "0d"        # return key
  501. home = "K73"            # home key
  502.  
  503. erase-eof = command 'e'
  504. erase-eof = "K4e"        # keypad -
  505.  
  506. erase-input = command-shift 'e'
  507. erase-input = shift "K4e"    # keypad -
  508.  
  509. insert-mode = command 'i'
  510. insert-mode = "K45"            # keypad + (ADB keypad)
  511. insert-mode = shift "K46"    # keypad + (numeric/Plus keypad)
  512.  
  513. delete-char = shift "08"    # backspace/delete key
  514. delete-char = "K75"            # X (Del) key
  515.  
  516. reset = command 'r'
  517.  
  518. dup = command 'd'
  519.  
  520. field-mark = command 'f'
  521.  
  522. apl-mode = command 'a'
  523.  
  524. insert-char = option "08"    # backspace/delete key
  525.  
  526. rub-out = command "08"        # backspace/delete key
  527.  
  528. up*2 = command-shift 'u'
  529. up*2 = option "1e"            # up arrow code
  530.  
  531. down*2 = command-shift 'm'
  532. down*2 = command-shift 'n'
  533. down*2 = option "1f"        # down arrow code
  534.  
  535. left*2 = command-shift 'h'
  536. left*2 = option "1c"        # left arrow code
  537.  
  538. right*2 = command-shift 'j'
  539. right*2 = command-shift 'k'
  540. right*2 = option "1d"        # right arrow code
  541.  
  542. cursor-pos = command 'p'
  543.  
  544. prog-reset = command 'g'
  545.  
  546. print-screen = shift "K69"    # F13
  547.